package com.example.rdemo.mapper;

import java.util.List;

import com.example.rdemo.entity.Goods;
import org.apache.ibatis.annotations.Mapper;

/**
 * goodsMapper接口
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
@Mapper
public interface GoodsMapper 
{
    //查询goods
    public Goods selectGoodsByGid(Long gid);
    //cid查询
    public Goods selectByCid(Long cid);

    //查询goods列表
    public List<Goods> selectGoodsList(Goods goods);

    //新增goods
    public int insertGoods(Goods goods);

    //修改goods
    public int updateGoods(Goods goods);

    //删除goods
    public int deleteGoodsByGid(Long gid);

    //批量删除goods
    public int deleteGoodsByGids(Long[] gids);
}
